package com.sofwin.service;

import com.github.pagehelper.PageInfo;
import com.sofwin.pojo.SysRole;

/**
 * @packageName: com.sofwin.service
 * @user: andyliu
 * @date: 2023/1/3 9:38
 * @email 115176513@qq.com
 * @description: TODO
 */

public interface RoleService {
    PageInfo<SysRole> queryByPage(SysRole role, Integer pageNumber, Integer pageSize);

    SysRole queryById(Integer id);

    boolean saveOrUpdate(SysRole role,Integer[] resourceIds);

    boolean removeById(Integer id);

    boolean removeByIds(Integer[] ids);

    boolean queryByName(String roleName);
}
